package com.yjq.programmer.controller.app;

import com.yjq.programmer.dto.PosterDTO;
import com.yjq.programmer.dto.ResponseDTO;
import com.yjq.programmer.service.IPosterService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 杨杨吖
 * @QQ 823208782
 * @WX yjqi12345678
 * @create 2022-11-11 8:48
 */
@RestController("AppPosterController")
@RequestMapping("/app/poster")
public class PosterController {

    @Resource
    private IPosterService posterService;

    /**
     * 小程序获取海报数据
     * @return
     */
    @PostMapping("/list")
    public ResponseDTO<List<PosterDTO>> appGetPosterList() {
        return posterService.getPosterList();
    }
}
